<%@ page import="com.hexu.event.entity.Specie" %>
<%@ page import="java.util.List" %>
<%@ page import="com.hexu.event.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: 86151
  Date: 2021/5/3
  Time: 22:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>咨询服务工作者</title>
</head>
<body>
<center>
        <table border="2">
            <tr>
                <td>名称</td>
                <td>操作</td>
            </tr>

            <%
                List<User> userList =(List<User>)request.getAttribute("worker");
                for(User user: userList){
            %>
            <tr>
                <td> <%=user.getUserName()%> </td>
                <td>
                    <a href="/hexu/consulting.jsp?account=<%=user.getAccount()%>">咨询</a>
                </td>
            </tr>
            <%
                }
            %>
        </table>

</center>
</body>
</html>
